import Vue from 'vue'
import Vuex from 'vuex'
import mutations from './mutations'
import actions from './actions'
import device from './modules/device'
import event from './modules/event'
import department from './modules/department'

Vue.use(Vuex)

// const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  state: {
    loginShow: false, // 是否展示登录模块
    systemShow: true, // 是否显示后台管理系统
    includes: [], // keep-alive配置
    gHeight: 0, // 除去顶栏后的高度
    loadingCont: {}, // loading主体
    loadingCount: 0 // loading同时调用的次数
  },
  mutations,
  actions,
  modules: {
    device,
    event,
    department
    // supMap: {}, // 实例化地图的缓存

  }
  // strict: debug,
  // plugins: debug ? [createLogger()] : []
})
